package random;

import java.security.SecureRandom;

public class SecureRandomDemo {

    public static void main(String[] args) {

        //生成10个1-33之间的随机数。
        try {
            SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG");

            for (int i = 0; i < 10; i++) {
                System.out.println(secureRandom.nextInt(33) + 1);
            }
        }catch (Exception ex){
            ex.printStackTrace();
        }
    }
}
